/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MODEL;

import java.io.Serializable;
import java.util.Observable;

/**
 *
 * @author Irene
 */
public class Event extends Observable implements Serializable {
private String date;
private String title;
private String year;
private String time;
private String note;



    public Event(String date, String title){
    this.date= date;
    this.title = title;


    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
        setChanged();
        notifyObservers();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
        setChanged();
        notifyObservers();
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
        setChanged();
        notifyObservers();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        setChanged();
        notifyObservers();
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
        setChanged();
        notifyObservers();
    }



/* it overrides the object to be represented in the text and returns it as a string.
 *
 */
    @Override
    public String toString()
    {
        return this.title;
    }







}
